package view;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JOptionPane;

/**
 * A class to display information about the program to the user.
 * @author Sarah George
 * @version Autumn 2012
 */
@SuppressWarnings("serial")
public class AboutAction extends AbstractAction {

	/**
	 * Constructs a help action.
	 */
	public AboutAction() {
		super("About");
		putValue(Action.MNEMONIC_KEY, KeyEvent.VK_A);
		putValue(Action.SELECTED_KEY, true);
	}

	/**
	 * Method to display JOptionPane about the project.
	 * @param the_event the action event, either mouse click or keyboard shortcut.
	 */
	@Override
	public void actionPerformed(final ActionEvent the_event) {
		JOptionPane.showMessageDialog(null, "TCSS 360 B - Project - Autumn 2012" +
				" \nBy: Sarah George, Kevin Anderson, Jeff Kuhlman");
	}
} //End class about action